package com.ld.poetry.im.http.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.ld.poetry.im.http.dao.ImChatUserFriendMapper;
import com.ld.poetry.im.http.entity.ImChatUserFriend;
import com.ld.poetry.im.http.service.ImChatUserFriendService;

import com.ld.poetry.im.http.vo.ImUserVo;
import com.ld.poetry.vo.UserVO;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;

/**
 * <p>
 * 好友 服务实现类
 * </p>
 *
 * @author sara
 * @since 2021-12-02
 */
@Service
public class ImChatUserFriendServiceImpl extends ServiceImpl<ImChatUserFriendMapper, ImChatUserFriend> implements ImChatUserFriendService {

    @Resource
    private ImChatUserFriendMapper imChatUserFriendMapper;




    @Override
    public Integer getBlack(ImUserVo userVO) {
     return  imChatUserFriendMapper.getBlack(userVO);
    }

    @Override
    public void updateBlackStatus(ImUserVo imUserVo) {
       imChatUserFriendMapper.updateBlackStatus(imUserVo);
    }

    @Override
    public void updateReliefBlackStatus(ImUserVo imUserVo) {
        imChatUserFriendMapper.updateReliefBlackStatus(imUserVo);
    }
}
